package cn.itcast.service;

import cn.itcast.dto.DishDto;
import cn.itcast.entity.Dish;
import cn.itcast.entity.Page;

import java.util.List;
import java.util.Map;

/**
 * @Author GuoMingXi @Email guomingxi2018@163.com
 * @Create 2022/6/1 17:02
 * @Version V1.0
 */
public interface IDishService {
    void save(DishDto dishDto);

    Page<DishDto> page(Integer page,Integer pageSize,String name);

    DishDto findById(Long id);

    void update(DishDto dishDto);

    List<Dish> list(Long categoryId);

    List<DishDto> listFlavor(Long categoryId, Integer status);

    /**
     * 通过套餐id查询对应的菜品
     * @param setmealId
     * @return
     */
    List<Map<String,Object>> findSetmealDish(Long setmealId);
}
